import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}
//新增精选活动
export function addSelectionActivities(data) {
    return request({
      url: '/choiceness/activity/v1',
      method: 'post',
      data
    })
}

//编辑精选活动
export function editSelectionActivities(data) {
    return request({
      url: '/choiceness/activity/v1',
      method: 'put',
      data
    })
}

//精选活动列表
export function selectionActivitiesList(params) {
    return request({
        url: `/choiceness/activity/v1/list`,
        method: 'get',
        params
    })
}
//获取精选活动详情
export function activityDetail(id) {
    return request({
      url: `/choiceness/activity/v1/getInfo/${id}`,
      method: 'get',
    })
}

//中台 显示-隐藏 精选活动
export function changeStatus(id) {
    return request({
      url: `/choiceness/activity/v1/changeStatus/${id}`,
      method: 'put',
    })
}
//删除精选活动
export function deleteBlackList(id) {
    return request({
      url: '/choiceness/activity/v1/' + id,
      method: 'delete'
    })
  }



